#include<iostream>
#include"tcp_client.hpp"
#include<stdlib.h>

void Usage(char* s)
{
  std::cout<<"Usage"<<"\n\t"<<s<<" des_ip des_port"<<std::endl;
}
int main(int argv, char* argc[])
{
  if(argv!=3)
  {
    Usage(argc[0]);
    return 1;
  }
  Tclient::TcpClient* clnt=new Tclient::TcpClient(argc[1],atoi(argc[2]));
  if(clnt!=nullptr)
  {
    clnt->Init();
    clnt->Start();
  }
  return 0;
}
